
# # 执行错误的时候希望提示的内容
#     print('请输入正确的数据')
#
# def demo():
#     num = int(input('输入一个数'))
#     result = 8 / num
#     print(f"{result}")
#
# if __name__ == '__main__':
#     try:
#         demo()
#     except ZeroDivisionError:
#
#         print('除数不能为0')
# def demo():
#     num = int(input('输入一个数'))
#     result = 8 / num
#     print(f"{result}")
#
#
# if __name__ == '__main__':
#     try:
#         demo()
#     except Exception as e:
#         print(f'除数出现的异常情况{e}')
# try:
#     num = int(input('请输入数字'))
#     result: 8 / num
#     print(f'{result}')
# except ValueError:
#     # 判断已知类型的错误
#     print('输入数据类型错误,请输入数字')
# except Exception as e:
#     # 判断未知类型的错误
#     print(f'其他类型错误{e}')
# else:
#     if num % 2 == 0:
#         print('偶数')
#     else:
#         print('奇数')
# finally:
#     print('程序运行结束')

with open("../day07/test/readme1.txt",mode='r',encoding='utf_8') as f:
    info = f.readline()
    print(info)


